package com.Logistics.BaseFeign;

import com.Logistics.entity.DriverJob;
import com.Logistics.vo.Drvier_job_TaskVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "pd-work", path = "/driver_job")
public interface Driver_jobFeignClient {

    /**
     * 根据司机编号查询车辆编号与车次编号
     * @param id
     * @return
     */
    @PostMapping("/findDriver_TaskById")
    public Drvier_job_TaskVo findDriver_TaskById(@RequestParam("id") String id);

    /**
     * 查询在工作的司机
     * @param id
     * @return
     */
    @PostMapping("/getDriverJobById")
    public DriverJob getDriverJobById(@RequestBody String id);

    /**
     * 添加司机工作信息
     * @param driverJob
     */
    @GetMapping("/addDriverJob")
    public void addDriverJob(@RequestBody DriverJob driverJob);
}
